package com.niit.service.impl;

import com.niit.dao.GoodMapper;
import com.niit.dao.OrderMapper;
import com.niit.pojo.Order;
import com.niit.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<Order> selectorderList() {
        return orderMapper.selectorderList();
    }
@Override
public Order orderSelect(int id) {
        return orderMapper.orderSelect(id);
    }
@Override
    public void orderDelete(int id) {
        orderMapper.orderDelete(id);
    }
}
